package com.open.rbac.model.vo.sys;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import com.open.rbac.model.vo.sys.group.UpdatePassword;


/**
 * 用户密码参数
 *
 * @author Riche's
 * @since 2022/8/18
 */
@Schema(name = "UserPasswordVo", description = "用户密码参数")
@Getter
@Setter
public class UserPasswordVo {

    @Schema(description = "用户ID")
    @NotBlank(message = "用户ID为必填项", groups = UpdatePassword.class)
    private String id;

    @Schema(description = "密码")
    @NotBlank(message = "密码为必填项", groups = UpdatePassword.class)
    @Size(min = 5, max = 30, message = "密码长度在5~30之间", groups = UpdatePassword.class)
    private String password;
}
